<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>While语句</title>
    <script>
        let i = 0;
        while (i < 10) {
            i += 2;
            console.log("i: " + i);
        }


    </script>
</head>
<body>
While语句

</body>
</html>